package com.boot.unity.api.wx.task;


import com.boot.unity.api.service.WxCreatQrCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import java.io.File;

@Configuration      //1.主要用于标记配置类，兼备Component的效果。
@EnableScheduling   // 2.开启定时任务
public class WxJxManagerFileTask {

    @Autowired
    private WxCreatQrCodeService wxCreatQrCodeService;

    // 进行处理报名时，小程序的招生二维码的生成工作--这个是测试微信生成
//     @Scheduled(cron = "0 59 23 * * ?")
//    @Scheduled(fixedRate=120*1000)
    public void createJxManagerCode(){
        wxCreatQrCodeService.createQrCode("123");
    }
}
